function window() {
  const [address, setAdress] = useState("");
  //新开窗口
  const openNewWindow = () => {
    excuteBridge();
    console.log("**** begin openNewWindow() **** address:   " + address);

    ZWJSBridge.openLink({
      url: address,
    })
      .then((result) => {
        console.log("#### ZWJSBridge.openLink() log. ####");
        console.log(result);
      })
      .catch((error) => {
        console.log("#### ZWJSBridge.openLink() error. ####");
        console.log(error);
      });

    console.log("**** exit openNewWindow() ****");
  };
  openNewWindow();

  // 关闭新开窗口
  const closeNewWindow = () => {
    excuteBridge();
    console.log("**** begin closeNewWindow() ****");

    ZWJSBridge.close()
      .then((result) => {
        console.log("#### ZWJSBridge.close() log. ####");
        console.log(result);
      })
      .catch((error) => {
        console.log("#### ZWJSBridge.close() error. ####");
        console.log(error);
      });
    console.log("**** exit closeNewWindow() ****");
  };
  closeNewWindow();
}
